$("#adminroleadd").click(function () {
    var data = $("#adminroleinfo").serialize();
    $.ajax({
        url: '/admin/role/add',
        type: 'POST',
        data: data,
        dataType: 'JSON',
        cache: false,
        success: function (json) {
            dshow(json.message);
            if (json.code == 2000) {
                window.location.href = '/admin/role';
            } else {
                d.content(json.message);
                d.showModal();
            }
        }
    });
});